package com.qmerak.action;

import java.util.Hashtable;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.qmerak.dao.impl.TestDao;

/**
 * @author Shaohong•Cheng
 * @mail shaohong726@126.com
 * @date 2013-4-6
 * @project TUManager
 */
@Controller
@RequestMapping("/test")
public class TestAction {
	@Resource
	private TestDao dao;

	@RequestMapping(value = "first")
	@ResponseBody
	public List<Hashtable<String, Object>> first() {
		return dao.query();
	}
	
	@RequestMapping(value = "first1")
	@ResponseBody
	public String first1() {
		return "xxx";
	}
}
